void function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():window.jQuery?window.jQuery.onmount=t():e.onmount=t()}(this,function(e){function t(e,i,o,r){if("object"==typeof o&&(r=o,o=void 0),0===arguments.length||d(e)||l(e))t.poll();else if(1===arguments.length)t.poll(e);else{var s=new n(e,i,o,r);a.push(s),s.register()}return this}function n(e,n,i,o){this.id="b"+p++,this.init=n,this.exit=i,this.selector=t.selectify(e),this.loaded=[],this.key="__onmount:"+p,this.detectMutate=o&&o.detectMutate}function i(e){for(;e;){if(e===document.documentElement)return!0;e=e.parentElement}}function o(e,n){return t.$?t.$(e):document.querySelectorAll(e)}function r(e,n){return t.$?e.each(function(e){n(this,e)}):f(e,n)}function s(e,n){return t.$?e.index(n)>-1:e.indexOf(n)>-1}function u(e,t){v[e]||(v[e]=[]),v[e].push(t),h.push(t)}function c(e,n){var i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;if(t.$)return t.$(e).is(n);if(i)return i.call(e,n);if(e.parentNode){for(var o=e.parentNode.querySelectorAll(n),r=o.length;r--;0)if(o[r]===e)return!0;return!1}}function f(e,t){var n,i=e.length;if(i===+i)for(n=0;n